/*
 * Copyright (C) 2011-2012 5ifilm.net. All Rights Reserved.
 * $Id: SysParaDao.java 2012-08-02 wangjunneil@gmail.com$
 *
 */
package net.ifilm.dao;

import java.util.List;
import java.util.Map;

import net.ifilm.entity.SystemParam;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;

/**
 * <code>SysParaDao</code>类是对systemparam表的增删改查等操作
 *
 * CreateBy: <a href="wangjunneil@gmail.com">Calvin</a>
 * CreateTime: 2013-01-15 23:01
 */
@Repository
public class SysParaDao extends BaseDao {

    /**
     * 查询所有系统参数表
     * 
     * @return 系统参数列表
     */
    public Map<String, SystemParam> querySysParamMap(Map<String, Object> parameter) {
        return super.queryForMap("querySysParamList", parameter, "paramName");
    }

    /**
     * 更新系统参数
     *
     * @param parameter
     */
    public void updateSystemParam(Map<String, Object> parameter) {
        super.insert("updateSystemParam", parameter);
    }
    
} ///:~
